﻿using AbpDemo.Rooms.Dto;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace AbpDemo.Rooms
{
    [ApiExplorerSettings(GroupName = "v2")]
    [Authorize]
    public class RoomService : CrudAppExtService<Room, RoomDto, Guid, CreateUpdateRoomDto>, IRoomSerivce
    {
        public RoomService(IRepository<Room, Guid> repository) : base(repository)
        {
        }

        public override Task<ResultDto<RoomDto>> CreateAsync(CreateUpdateRoomDto createInput)
        {
            //判断重名

            return base.CreateAsync(createInput);
        }
    }
}
